package com.lengyue.imakiba.logic;

import com.jfinal.plugin.activerecord.Db;

public class AnimeTypeLogic {
	/**
	 * 删除动漫对应的动漫-类型关系
	 * @param animeId 动漫Id
	 */
	public static void deleteAnimeTypeByAnimeId(int animeId)
	{
		Db.update("delete from anime_type where anime_id = ?", animeId);
	}
	/**
	 * 删除动漫的剧集
	 * @param animeId 动漫Id
	 */
	public static void deleteEpisodeByAnimeId(int animeId)
	{
		Db.update("delete from episode where anime_id = ?", animeId);
	}
}
